const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
    entry: {
        mRecordEvent:'../kfm_mobile/QianDuanJiShi/entry_recordEvent.js'
    },
    plugins: [
        new HtmlWebpackPlugin({
            filename:'mRecordEvent.html',
            template:'../kfm_mobile/index.html'
        }),
    ],
    output: {
        filename: '[name].[hash].js',
    },
    module: {
        loaders: [
            {
                test: /\.html$/,
                use: 'html-loader'
            },
            {
                test: /\.(png|svg|jpg|gif)$/,
                use: [
                    'file-loader'
                ]
            }
        ],
    },
};